﻿using System;
using System.Collections.Generic;

namespace Common.Model
{
    public class Topic
    {
        public string MergeName { get; set; }
        public string From { get; set; }
        public string TopicName { get; set; }
        public long InsertDate { get; set; }
        public HashSet<Stock> Stocks = new HashSet<Stock>();

        public override string ToString()
        {
            return MergeName + TopicName + InsertDate + Stocks;
        }
        
        public override int GetHashCode()
        {
            return null == TopicName ? base.GetHashCode() : TopicName.GetHashCode();
        }
    }
}